//
// Created by Bili_TianX_Computer on 2021/7/8.
//

#ifndef SUPERMARKETMANAGESYSTEM_USERPANEL_H
#define SUPERMARKETMANAGESYSTEM_USERPANEL_H

#include <QWidget>
#include <QFormLayout>
#include <QVBoxLayout>
#include <QPushButton>
#include <QLineEdit>
#include <QMessageBox>
#include "../../data/UserDataManager.h"


class UserPanel : public QWidget
{
Q_OBJECT

public:
    QFormLayout *formLayout;
    QVBoxLayout *widgetLayout;
    QPushButton *loginButton;
    QLineEdit *accountEdit;
    QLineEdit *passwordEdit;

    UserPanel();


public slots:

    void loginButtonClickedSlot();

signals:

    void logined(bool isAdmin);
};


#endif //SUPERMARKETMANAGESYSTEM_USERPANEL_H
